<?php
	$model=new model();
	$userId=$_POST['userId'];
	$userAccName=$_POST['userAccName'];
	$userName=$_POST['userName'];
	$userPassword=$_POST['userPassword'];
	$userKind=$_POST['userKind'];
	$userCompanyName=$_POST['userCompanyName'];
	$userTel=$_POST['userTel'];
	$userEmail=$_POST['userEmail'];
	$user=new User($userId,$userAccName,$userPassword,$userKind,$userCompanyName,$userName,$userTel,$userEmail);
	if($model->updateUser($user)) echo "Update successful !";
	else echo "Update failed !";
?>